#include<stdio.h>
int main()
{
 int hua,she;
 scanf("%d",&hua);
 she=(hua-35)*5/9;
 printf("%d",she);
 return 0;
} 
